<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>student</title>
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
        <link rel="stylesheet" href="css/rule.css">
        <link rel="stylesheet" href="css/student.css">
        <script src="js/jquery-1.8.3.min.js"></script>
    </head>
    <body>
        <div class="header">
            <a  onclick="history.back(-1)"><img src="../public_img/return.png" alt=""></a>
            <p>学员管理</p>
        </div>

        <!--学院-->
        <div class="message">
            <ul class="list">
                <!-- <li class="student_evaluate"><div class="student_head_img"><img src="http://image.icandrive.cn/Fk-wv-Uaq3tW0EY8XvW_RLJO40HC" alt="" ></div><div class="student_infomaition"><div></div><div></div><div><span>评价：</span><span>暂未评价</span></div></div></li>
-->

            </ul>

        </div>

        <script src="js/student.js"></script>
        <script src="../jquery.min.js	"></script>
        <script>
            $(function () {
                $('.address').click(function () {
                    window.location.href='../distence/distence.html';
                });
                var token=localStorage.phone;
                $.ajax({
                    url:"https://newapp.icandrive.cn/api/manage_student.php",
                    type:'post',
                    dataType:'json',
                    data:{token:token},
                    success: function (data) {
                        console.log(data);
                        if(data.status==200){
                            $(data.dataing).each(function () {
                                /*$('.list').append('<li  class="list_item"><span>学员</span>&nbsp;<span>'+this.user_name+"</span><a>"+this.phone+'</a></li>')*/
                                $('.list').append('<li class="student_evaluate"><div class="student_head_img"><img src="'+this.photo+'" alt="" ></div><div class="student_infomaition"><div>'+this.user_name+'</div><div class="student_phone_warp">'+this.phone+'<a href="tel:'+this.phone+'" class="call_student_phone"><img src="phone_call.png" alt=""></a></div><div><span>评价：</span><span>暂未评价</span></div></div></li>');



                            })
                        }
                    },
                    error: function () {
                    }



                })

            })
        </script>
        <script>
            document.addEventListener("plusready", function() {
                // 注册返回按键事件
                plus.key.addEventListener('backbutton', function() {
                    window.history.back();
                }, false);
                //此处false代表不退出页面，如果为true回退到上一个一面
            });
        </script>
    </body>
</html>
